#ifndef  _PAGE_INFO_H
#define  _PAGE_INFO_H

#include <string>
#include <fstream>
#include <tr1/memory>

namespace jsearch
{
	// Page info: structure of infomation of the page(document)
	class page_info
	{
		public:
			page_info(int id, int type, std::string name);
			explicit page_info(std::string db_fmt);

			int id() const ;
			int type() const ;
			std::string name() const ;

			friend std::ostream& operator<<( std::ostream& os,
				                           	 const page_info& pi);

		private:
			struct Impl;
			std::tr1::shared_ptr<Impl> pimpl;
	};

}
#endif
